package com.kmxd.ams.client.system.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * 通知查看范围
 *
 * @author nickbi
 * @since 2023-04-07
 */
@Data
@Schema(description = "通知查看范围对象")
public class SysNoticeCompanyVO implements Serializable {

  private static final long serialVersionUID = 1L;

  @Schema(description = "主键id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long id;

  @Schema(description = "通知id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long noticeId;

  @Schema(description = "可以查看单位id")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long comId;

  @Schema(description = "创建人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long createBy;

  @Schema(description = "创建时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date createTime;

  @Schema(description = "修改人")
  @JsonSerialize(using = ToStringSerializer.class)
  private Long updateBy;

  @Schema(description = "修改时间")
  @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;
}
